class ApplicationController < ActionController::Base

  before_filter :see_user

  filter_parameter_logging "password"
  
  include GlobalHelper
  helper GlobalHelper
  
  protected
    
    def see_user
      return true if current_user.guest?
      current_user.seen_now!
    end
    
    def rescue_action_in_public(exception)
      case exception.class.name
        when 'ActionController::RoutingError',
            'ActionController::UnknownAction',
            'ActiveRecord::RecordNotFound'
          render :template => 'layouts/404', :layout => true, :status => '404 Not Found'
      end
    end
    
    def local_request?
      false
    end

end
